package com.xukehong.demo.design_pattern.ArchetypalModel;

import lombok.Data;
import org.junit.Test;

/**
 * @Author: xkh
 * @Date: 2019/4/2 16:03
 * @Version 1.0
 * 简历类
 */
@Data
public class Resume {
    //姓名
    private String name;
    //性别
    private String sex;
    //年龄
    private String age;
    //工作时间
    private String timeArea;
    //公司
    private String company;

    public Resume(String name){
        this.name = name;
    }

    //设置个人信息
    public void SetPersonalInfo(String name, String age) {
        this.sex = sex;
        this.age = age;
    }

    //设置工作经历
    public void SetWorkExperience(String timeArea, String company) {
        this.timeArea = timeArea;
        this.company = company;
    }

    //显示简历
    public void Display(){
        System.out.println("姓名:"+this.name+"\n年龄:"+this.age);
        System.out.println("工作经历:"+this.timeArea+"  "+this.company);
    }

}
